package entity.zhujie.lianxi.demo02;

import java.lang.reflect.Method;
import java.lang.reflect.Parameter;

public class MainTest {
    public static void main(String[] args) {
        Class<?> clazz = ZongHeSum.class;
        try {
            Method method = clazz.getDeclaredMethod("getSum", int.class);
            Parameter[] parameters = method.getParameters();
            for (int i = 0; i < parameters.length; i++) {
                Parameter parameter = parameters[i];
                
            }

        } catch (NoSuchMethodException e) {
            throw new RuntimeException(e);
        }
    }
}
